﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Clinica_Frba
{
    public partial class ABMForm : Form
    {
        public Manejador manejador;

        public ABMForm(Manejador manejador)
        {
            InitializeComponent();
            this.manejador = manejador;
        }

        private void ABMForm_Load(object sender, EventArgs e)
        {

        }

        public void Alta_Click(object sender, EventArgs e)
        {
            manejador.Alta();
            this.Hide();
        }

        public void Baja_Click(object sender, EventArgs e)
        {
            manejador.Baja();
            this.Hide();
        }

        public void Modificacion_Click(object sender, EventArgs e)
        {
            manejador.Modificacion();
            this.Hide();
        }

        public void Buscar_Click(object sender, EventArgs e)
        {
            manejador.Listado();
            this.Hide();
        }

       

    }
}
